package com.youkeyi.ddy.cloud.common.api.application.system.ad;

import com.youkeyi.ddy.cloud.common.api.application.system.ad.dto.SystemAdAreaListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.ad.dto.SystemAdCityListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.ad.dto.SystemAdProvinceListCloudDto;
import com.youkeyi.ddy.cloud.common.api.application.system.ad.param.SystemAdAreaListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.ad.param.SystemAdCityListCloudParam;
import com.youkeyi.ddy.cloud.common.api.application.system.ad.param.SystemAdProvinceListCloudParam;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * SystemAdCloudServiceFallback
 *
 * @Author liuxiawang
 * @Date 1/28/22 4:12 PM
 * @Location shenzhen.china
 */
@Component
@RequestMapping("/system/ad/fallback")
public class SystemAdCloudServiceFallback implements SystemAdCloudService {

    @Override
    public SystemAdProvinceListCloudDto provinceList(SystemAdProvinceListCloudParam param) {
        return new SystemAdProvinceListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemAdCityListCloudDto cityList(SystemAdCityListCloudParam param) {
        return new SystemAdCityListCloudDto(Boolean.FALSE, "服务不可用");
    }

    @Override
    public SystemAdAreaListCloudDto areaList(SystemAdAreaListCloudParam param) {
        return new SystemAdAreaListCloudDto(Boolean.FALSE, "服务不可用");
    }
}
